﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SearchTran
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>SearchTran</h2>
    <form method="post" action="/TransactionLog/SearchTran">
    <select name="search">
    <option>--Chọn tiêu chí--</option>
    <option>TransID</option>
    <option>UserName</option>
    </select>
    Nhập:<input type="text" name="txtsearch" />
     <%if (ViewData["ListsearchTrL"] != null)
      { %>
      <table>
      <tr>
      </tr>
      <%foreach (VgoCardChange.Models.Objects.TransactionLog tran in (List<VgoCardChange.Models.Objects.TransactionLog>)ViewData["ListsearchTrL"])
        { %>
        <tr><td><%:tran.TransID %></td></tr>
        <tr><td><%:tran.UserID %></td></tr>
        <tr><td><%:tran.TransDate%></td></tr>
        <tr><td><%:tran.IpAddress%></td></tr>
        <tr><td><%:tran.UserAgent%></td></tr>
        <tr><td><%:tran.TransStatus%></td></tr>
        <tr><td><%:tran.CardSupplierID%></td></tr>
        <tr><td><%:tran.CardNumber%></td></tr>
        <tr><td><%:tran.SeriNumber%></td></tr>
        <tr><td><%:tran.Money%></td></tr>
        <tr><td><%:tran.Bonus%></td></tr>
        <tr><td><%:tran.Description%></td></tr>
      <%} %>
      </table>
    <%} %>
    <input type="submit" value="Tìm kiếm"  class="vadd"/>
    <%:Html.ActionLink("Quay lại", "GetTransactionLog", "TransactionLog", new { @class = "vback" })%>
    </form>
</asp:Content>
